<c:set var='view' value='/commandDetail' scope='session' />
<div id="main">
    <!-- BEGIN SLIDESHOW -->

    <!-- END SLIDESHOW -->
    
    <!-- BEGIN CONTEINER -->
    <div id="content">
        <div id="titleExt">
            <div class="left"><fmt:message key='commandeM'/></div>
            <div class="sp"></div>
        </div>
        <table class="normal" cellpadding="7">

            <tr>
                <th width="400"><fmt:message key='product'/></th>
                <th width="85"><fmt:message key='quantity'/></th>
                <th width="60"><fmt:message key='price'/></th>
                <th width="80"><fmt:message key='total'/></th>
            </tr>

            <tbody align="right" border="1">
                <c:forEach var="product" items="${commande.items}" varStatus="iter">
                    <tr bgcolor="${((iter.index % 2) == 0) ? '#F781F3' : '#FF00BF'}">
                        <td align="left">${product.name}</td>
                        <td>${product.quantity}</td>
                        <td>${product.price}</td>
                        <td>${product.total}</td>
                    </tr>
                </c:forEach>   

            </tbody>
        </table>
        <table cellpadding="7">
            <c:if test="${commande.total < 80}">
                <tr>
                    <td  width=475"></td>
                    <td align="right" width="57"><fmt:message key='shipping'/>:</td>
                    <td align="right" width="73">24.9</td>
                </tr>
            </c:if>
            <tr>
                <td  width=475"></td>
                <td align="right" width="57"><fmt:message key='total'/>:</td>
                <td align="right" width="73"><fmt:formatNumber value="${(commande.total < 80) ? (commande.total+24.9) : commande.total}" pattern="0.00"/></td>
            </tr>
        </table>
        <br/>
        <input type="button" value="<fmt:message key='commandes'/>" onclick="location.href='<c:url value='/commandes'/>'">

    </div>
    <!-- END CONTENT -->
    <div class="sp"></div>
</div>
<div class="sp"></div>
</div>